<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // 先说结论：await 后面的代码是微任务
    ; (async () => {
      /* const r = await Promise.resolve(333);
      console.log(r); */
      Promise.resolve(333).then((r) => console.log(r));
    })();
  </script>
</body>

</html>